<?php
// Fill up array with states
//
$error[]="State not found";

$florida[]="Gainesville";
$florida[]="Miami";
$florida[]="Tampa";
$florida[]="Orlando";
$florida[]="Jacksonville";
$florida[]="Melbourne";
$florida[]="Tallahassee";
$newyork[]="Brooklynn";
$newyork[]="Manhattan";
$newyork[]="Queens";
$newyork[]="Staten Island";
$newyork[]="Buffalo";
$california[]="Los Angelos";
$california[]="San Fransisco";
$california[]="Sacramento";
$california[]="San Jose";
$texas[]="Houston";
$texas[]="Dalls";
$texas[]="San Antonio";
$texas[]="Mickinney";
$northcarolina[]="Raleigh";
$northcarolina[]="Wilmington";
$northcarolina[]="Charolotte";
$northcarolina[]="Greensboro";



//get the q parameter from URL
$q=$_GET["q"];

if( $q == "florida")
	echo json_encode($florida);
elseif( $q == "newyork")
	echo json_encode($newyork);
elseif( $q == "california")
	echo json_encode($california);
elseif( $q == "northcarolina")
	echo json_encode($northcarolina);
elseif( $q == "texas")
	echo json_encode($texas);
else
	echo json_encode($error);
	
	

?>